package com.google.code.ojar.sendtemplatemail.console.exec;

import java.io.IOException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.code.ojar.sendtemplatemail.app.ReSendMail;
/**
 * Executes the resend method.<BR>
 * This class should be call by console ( java {@link ResendMailMain})
 * @author ottoabreu
 *
 */
public final class ResendMailMain {
	private static final Logger logger = LoggerFactory
			.getLogger(ResendMailMain.class);
	
	
	public static void main(String[] args){
		
		try {
			ReSendMail.resendMail();
		} catch (IOException e) {
			logger.error("Can't resend mail due an IO error:",e);
		} catch (Exception e) {
			logger.error("Can't resend mail due an General error:",e);
		}
	}
	/**
	 * Private constructor
	 */
	private ResendMailMain(){
		
	}
}
